/*   1:    */ package org.jetbrains.generate.tostring.element;
/*   2:    */ 
/*   3:    */

import com.intellij.openapi.util.text.StringUtil;

import java.util.Arrays;

/*   4:    */
/*   5:    */ 
/*   6:    */ public class ClassElement
/*   7:    */ {
/*   8:    */   private String a;
/*   9:    */   private String b;
/*  10:    */   private String c;
/*  11:    */   private String d;
/*  12:    */   private String[] e;
/*  13:    */   private boolean f;
/*  14:    */   private boolean g;
/*  15:    */   private boolean h;
/*  16:    */   private boolean i;
/*  17:    */   
/*  18:    */   public boolean isImplements(String paramString)
/*  19:    */   {
/*  20: 50 */     for (String str : this.e) {
/*  21: 51 */       if (paramString.contains(str)) {
/*  22: 52 */         return true;
/*  23:    */       }
/*  24:    */     }
/*  25: 56 */     return false;
/*  26:    */   }
/*  27:    */   
/*  28:    */   public boolean isExtends(String paramString)
/*  29:    */   {
/*  30: 66 */     return paramString.contains(this.c);
/*  31:    */   }
/*  32:    */   
/*  33:    */   public boolean matchName(String paramString)
/*  34:    */     throws IllegalArgumentException
/*  35:    */   {
/*  36: 77 */     if (StringUtil.isEmpty(paramString)) {
/*  37: 78 */       throw new IllegalArgumentException("Can't perform regular expression since the given input is empty. Check your Velocity template: regexp='" + paramString + "'");
/*  38:    */     }
/*  39: 80 */     return this.a.matches(paramString);
/*  40:    */   }
/*  41:    */   
/*  42:    */   public String[] getImplementNames()
/*  43:    */   {
/*  44: 84 */     return this.e;
/*  45:    */   }
/*  46:    */   
/*  47:    */   public void setImplementNames(String[] paramArrayOfString)
/*  48:    */   {
/*  49: 88 */     this.e = paramArrayOfString;
/*  50:    */   }
/*  51:    */   
/*  52:    */   public String getSuperQualifiedName()
/*  53:    */   {
/*  54: 92 */     return this.d;
/*  55:    */   }
/*  56:    */   
/*  57:    */   public void setSuperQualifiedName(String paramString)
/*  58:    */   {
/*  59: 96 */     this.d = paramString;
/*  60:    */   }
/*  61:    */   
/*  62:    */   public String getSuperName()
/*  63:    */   {
/*  64:100 */     return this.c;
/*  65:    */   }
/*  66:    */   
/*  67:    */   public void setSuperName(String paramString)
/*  68:    */   {
/*  69:104 */     this.c = paramString;
/*  70:    */   }
/*  71:    */   
/*  72:    */   public String getName()
/*  73:    */   {
/*  74:108 */     return this.a;
/*  75:    */   }
/*  76:    */   
/*  77:    */   public void setName(String paramString)
/*  78:    */   {
/*  79:112 */     this.a = paramString;
/*  80:    */   }
/*  81:    */   
/*  82:    */   public String getQualifiedName()
/*  83:    */   {
/*  84:116 */     return this.b;
/*  85:    */   }
/*  86:    */   
/*  87:    */   public void setQualifiedName(String paramString)
/*  88:    */   {
/*  89:120 */     this.b = paramString;
/*  90:    */   }
/*  91:    */   
/*  92:    */   public boolean isHasSuper()
/*  93:    */   {
/*  94:124 */     return this.c != null;
/*  95:    */   }
/*  96:    */   
/*  97:    */   public boolean isDeprecated()
/*  98:    */   {
/*  99:128 */     return this.f;
/* 100:    */   }
/* 101:    */   
/* 102:    */   public void setDeprecated(boolean paramBoolean)
/* 103:    */   {
/* 104:132 */     this.f = paramBoolean;
/* 105:    */   }
/* 106:    */   
/* 107:    */   public boolean isEnum()
/* 108:    */   {
/* 109:136 */     return this.g;
/* 110:    */   }
/* 111:    */   
/* 112:    */   public void setEnum(boolean paramBoolean)
/* 113:    */   {
/* 114:140 */     this.g = paramBoolean;
/* 115:    */   }
/* 116:    */   
/* 117:    */   public boolean isException()
/* 118:    */   {
/* 119:144 */     return this.h;
/* 120:    */   }
/* 121:    */   
/* 122:    */   public void setException(boolean paramBoolean)
/* 123:    */   {
/* 124:148 */     this.h = paramBoolean;
/* 125:    */   }
/* 126:    */   
/* 127:    */   public boolean isAbstract()
/* 128:    */   {
/* 129:152 */     return this.i;
/* 130:    */   }
/* 131:    */   
/* 132:    */   public void setAbstract(boolean paramBoolean)
/* 133:    */   {
/* 134:156 */     this.i = paramBoolean;
/* 135:    */   }
/* 136:    */   
/* 137:    */   public String toString()
/* 138:    */   {
/* 139:160 */     return "ClassElement{name='" + this.a + "'" + ", qualifiedName='" + this.b + "'" + ", superName='" + this.c + "'" + ", superQualifiedName='" + this.d + "'" + ", implementNames=" + (this.e == null ? null : Arrays.asList(this.e)) + ", enum=" + this.g + ", deprecated=" + this.f + ", exception=" + this.h + ", abstract=" + this.i + "}";
/* 140:    */   }
/* 141:    */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.generate.tostring.element.ClassElement

 * JD-Core Version:    0.7.0.1

 */